package com.tmxk;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

// @SpringBootApplication : 核心启动类 , 组合注解
// @SpringBootConfiguration :  标识该类是个配置文件
// @EnableAutoConfiguration : 自动装配(该类Bean组件)
// @ComponentScan : 默认扫描启动类项包
@SpringBootApplication
//@ComponentScan(basePackages = {"com.tmxk"})
//@MapperScan("com.tmxk.dao") 扫描Mapper(Dao层接口)
@MapperScan("com.tmxk.dao")
@EnableSwagger2
public class Springboot202301Application {

    public static void main(String[] args) {
        SpringApplication.run(Springboot202301Application.class, args);
    }

}
